import Home from '../views/home/Home.vue'
import Detail from '../views/detail/Detail.vue'
import More from '../views/more/More.vue'
import Login from '../views/login/Login.vue'
import Cart from '../views/cart/Cart.vue'
import Search from '../views/search/Search.vue'

const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
  },
  {
    path: '/detail',
    name: 'Detail',
    component: Detail,
    meta:{
      isContent:true
    }
  },
  {
    path: '/more/:type',
    name: 'More',
    component: More,
    meta:{
      isContent:true
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: Login,
  },
  {
    path: '/cart',
    name: 'Cart',
    component: Cart,
    meta:{
      isContent:true,
      isAuth:true
    }
  },
  {
    path: '/Search',
    name: 'Search',
    component: Search,
    meta:{
      isContent:true,
    }
  },
]

export default routes